package router

import (
	"fx_swift_boss/internal/controller"
	"fx_swift_boss/pkg/middleware"
)

func AgentRouter() {
	userApiVer := miniApiVer.Group("agent", middleware.CheckAuth())
	{
		userApiVer.GET("getAgentDetails", controller.GetAgentDetails)
		userApiVer.GET("discountOrderDetails", controller.DiscountOrderDetails)
		userApiVer.GET("getAgentCompanyInfo", controller.GetAgentCompanyInfo)

		userApiVer.POST("operatorProcess", controller.OperatorProcess)
		userApiVer.POST("agentList", controller.AgentList)
		userApiVer.POST("agentApplyReview", controller.AgentApplyReview)
		userApiVer.POST("discountOrderList", controller.DiscountOrderList)
		userApiVer.POST("discountOrderOperator", controller.DiscountOrderOperator)
		userApiVer.POST("cashFlowList", controller.CashFlowList)
		userApiVer.POST("operatorApplyReview", controller.OperatorApplyReview)
		userApiVer.POST("adaptManagementFee", controller.AdaptManagementFee)
		userApiVer.POST("adaptFee", controller.AdaptFee)
		userApiVer.POST("adaptCardOpeningFee", controller.AdaptCardOpeningFee)
	}
}
